package com.hruiworks.campusgroup.service;

import com.hruiworks.campusgroup.common.PageVO;
import com.hruiworks.campusgroup.pojo.entity.Activity;
import com.hruiworks.campusgroup.pojo.entity.ActivityMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hruiworks.campusgroup.pojo.entity.User;

/**
* @author jiushui
* @description 针对表【activity_message(活动上线消息)】的数据库操作Service
* @createDate 2025-04-09 18:44:46
*/
public interface ActivityMessageService extends IService<ActivityMessage> {

    /**
     * 发布活动上新消息
     * @param activity 新上线的活动
     * @return
     */
    Boolean releaseActivityMessage(Activity activity);


    /**
     * 分页获取activity_message
     * @param user
     * @return
     */
    PageVO<ActivityMessage> listPageActivityMessage(Long current, Long pageSize, User user);

}
